import request from '@/utils/request'

/**
 * 查询是否已经设置了上传文件
 * @returns {AxiosPromise}
 */
export function queryUploadSettings(){
  return request({
    url: `/uploadSettings/queryUploadSettings`,
    method: 'get'
  })
}

/**
 * 修改设置的上传文件
 * @param uploadSettings
 * @returns {AxiosPromise}
 */
export function updateUploadSettings(uploadSettings) {
  return request({
    url: `/uploadSettings/updateUploadSettings`,
    method: 'put',
    data: uploadSettings
  })
}

/**
 * 新增设置的上传文件
 * @param uploadSettings
 * @returns {AxiosPromise}
 */
export function addUploadSettings(uploadSettings) {
  return request({
    url: `/uploadSettings/addUploadSettings`,
    method: 'post',
    data: uploadSettings
  })
}

